import sklearn.metrics as metrics


class Analyser(object):
    '''
        结果分析：
            分类报告：包含准确率，召回率，F1-score
            SOC: TP,FP,FN,TN
            混淆矩阵
    '''

    def __init__(self):
        pass

    def analyse(self, predict_y, target):
        print("**************** model report ****************")
        print(metrics.classification_report(target, predict_y))
        print(metrics.accuracy_score(target, predict_y))
        print(metrics.confusion_matrix(target, predict_y))
